package com.prj.component.exception;


public class BusinessException extends RuntimeException {
	
	private static final long serialVersionUID = 8882366904034518521L;

	private Integer code;

	private String message;
	

	public BusinessException() {
		super();
	}

	public BusinessException(Integer code) {
		super();
		this.code = code;
	}

	public BusinessException(Integer code, String message) {
		super();
		this.code = code;
		this.message = message;
	}

	public BusinessException(Integer code, String message, Throwable cause) {
		super(cause);
		this.code = code;
		this.message = message;
	}

	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
}
